unit bgr;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, Buttons, FileCtrl;

type
  TBgrFrm = class(TForm)
    Panel1: TPanel;
    BitBtn1: TBitBtn;
    tgaBox: TFileListBox;
    procedure tgaBoxClick(Sender: TObject);
    procedure BitBtn1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  BgrFrm: TBgrFrm;

implementation

{$R *.dfm}

uses
  Hpt;

procedure TBgrFrm.BitBtn1Click(Sender: TObject);
begin
  HptFrm.loadBackground(tgaBox.FileName);
end;

procedure TBgrFrm.FormCreate(Sender: TObject);
begin
  tgaBox.Directory := HptFrm.dir+'Texturen\';
end;

procedure TBgrFrm.tgaBoxClick(Sender: TObject);
begin
//  Caption := tgaBox.FileName;
//  preImg.Picture.LoadFromFile(tgaBox.FileName);
end;

end.
